/*
 * GLButton.cpp
 *
 *  Created on: Aug 5, 2010
 *      Author: Ry
 */

#include <gl/glew.h>
#include "GLButton.h"

GLButton::GLButton(ShaderProgram *shaderProgram): GLComponent(shaderProgram) {
	this->rect.height = 25;
}

void GLButton::handleEvent(GUIEvent *event) {
	switch(event->type) {
	case GUIEvent::MOUSEENTER:
		backgroundColor = RGBA(0xffffff, 1.0f);
		break;
	case GUIEvent::MOUSEEXIT:
		backgroundColor = RGBA(0xcccccc, 1.0f);
		break;
	case GUIEvent::MOUSEMOTION:
		break;
	case GUIEvent::MOUSEBUTTONUP:
		break;
	case GUIEvent::MOUSEBUTTONDOWN:
		break;
	}
}

GLButton::~GLButton() {
}
